package by.ins.life.impl;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

import org.apache.log4j.Logger;

import by.ins.life.IData;

public class Data<T > implements IData<T> {
	private static final Logger log = Logger.getLogger(Data.class);
	List<T> delegate;
	
	public Data(){
		delegate = new ArrayList<T>();
	}
	
	
	
	public Data(int capacity){
		delegate = new ArrayList<T>(capacity);
	}
	
	public void add(int index, T element) {
		delegate.add(index, element);
	}
	public boolean add(T e) {
		return delegate.add(e);
	}
	public boolean addAll(Collection<? extends T> c) {
		return delegate.addAll(c);
	}
	public boolean addAll(int index, Collection<? extends T> c) {
		return delegate.addAll(index, c);
	}
	public void clear() {
		delegate.clear();
	}
	public boolean contains(Object o) {
		return delegate.contains(o);
	}
	public boolean containsAll(Collection<?> c) {
		return delegate.containsAll(c);
	}
	public boolean equals(Object o) {
		return delegate.equals(o);
	}
	public T get(int index) {
		return delegate.get(index);
	}
	public int hashCode() {
		return delegate.hashCode();
	}
	public int indexOf(Object o) {
		return delegate.indexOf(o);
	}
	public boolean isEmpty() {
		return delegate.isEmpty();
	}
	public Iterator<T> iterator() {
		return delegate.iterator();
	}
	public int lastIndexOf(Object o) {
		return delegate.lastIndexOf(o);
	}
	public ListIterator<T> listIterator() {
		return delegate.listIterator();
	}
	public ListIterator<T> listIterator(int index) {
		return delegate.listIterator(index);
	}
	public T remove(int index) {
		return delegate.remove(index);
	}
	public boolean remove(Object o) {
		return delegate.remove(o);
	}
	public boolean removeAll(Collection<?> c) {
		return delegate.removeAll(c);
	}
	public boolean retainAll(Collection<?> c) {
		return delegate.retainAll(c);
	}
	public T set(int index, T element) {
		return delegate.set(index, element);
	}
	public int size() {
		return delegate.size();
	}
	public List<T> subList(int fromIndex, int toIndex) {
		return delegate.subList(fromIndex, toIndex);
	}
	public Object[] toArray() {
		return delegate.toArray();
	}
	
	@SuppressWarnings("hiding")
	public <T> T[] toArray(T[] a) {
		return delegate.toArray(a);
	}
	
}
